﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DAs = System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Data.LINQ;
using Dimok.Shared;

namespace Data.LINQ {
	public partial class TablesMetaData : Dimok.Shared.MetaTablesDictionary {

		////////////////////////////////////////////////////////////////////////////////////////////////////
		/// <summary>	Default constructor. </summary>
		///
		/// <remarks>	Dimon, 12/21/2010. </remarks>
		////////////////////////////////////////////////////////////////////////////////////////////////////

		public TablesMetaData() {
			Add<v_Bridge>(new Dimok.Shared.MetaFieldsDictionary(typeof(v_Bridge)) 
    {
      { "VantageID", new MetaField() { DisplayIndex=1} }, 
      { "LoanID", new MetaField() { DisplayIndex=2} }, 
      { "VIN", new MetaField() { DisplayIndex=3} }, 
      { "ClientName", new MetaField() { DisplayIndex=4} },
      { "DPD", new MetaField() { DisplayIndex=5, IsAverage=true} } ,
      { "PrincipalBalance", new MetaField() { DisplayIndex=6, IsAverage=true, IsTotal=true,FormatString="n2", FormatStringAvg="n"} } ,
      { "LoanProgramRef", new MetaField() { DisplayIndex=7, IsEnum=true} } ,
      { "APR", new MetaField() { IsAverage=true,FormatString="p2"} } ,
      { "PayOffAmount", new MetaField() { IsAverage=true,FormatString="n2",FormatStringAvg="n"} }
			
    });

		}
	}
}